import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import EventBus from "@/libs/util.event";

// 加载插件
import "@/plugin/component";
import "@/plugin/popups";
import "@/plugin/vant";

import "@iconfu/svg-inject";

// vue 配置设置
Vue.config.productionTip = false;
Vue.prototype.isDev = process.env.NODE_ENV === "development";
Vue.prototype.event = new EventBus();

// 初始化
Vue.prototype.initialize = function () {
  // 初始化数据
};

new Vue({
  router,
  store,
  render: (h) => h(App),
  created() {
    this.initialize();
  },
}).$mount("#app");
